Turn off millions of 'ignore warning' from mingw-gcc.
authoroliskoli <oliskoli>
Wed, 19 Jul 2006 23:07:54 +0000 (23:07 +0000)
committeroliskoli <oliskoli>
Wed, 19 Jul 2006 23:07:54 +0000 (23:07 +0000)
This pragma is only usefull for MSVC builds.
(see http://www.mobydisk.com/softdev/techinfo/cpptips.html)

defs.h

diff --git a/defs.h b/defs.h
index 30487f504147c27df644cf2c4a584ab40c0225c8..e6c71491efadd3146acf4fcad73815e884b2235a 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -74,7 +74,9 @@
 
 /* Turn off numeric conversion warning */
 #if __WIN32__
-#  pragma warning(disable:4244)
+#  if _MSC_VER
+#    pragma warning(disable:4244)
+#  endif
 #  define _CRT_SECURE_NO_DEPRECATE 1
 #endif